import React from 'react'
import { Person as PersonType } from '../types'

export const Person = ({person}:{person:PersonType}) => {
  return (
    <div className="card">
      <h3>{person.name}</h3>
      <p>Gender - {person.gender}</p>
      <p>Birth year - {person.birth_year}</p>
    </div>
  )
}
